package test.reflect;

import oopdbms.storage.model.Field;
import oopdbms.storage.model.StreamObject;
import oopdbms.storage.model.TextObject;

public class Date implements Cloneable{
	
	@Field(primaryKey=true)	
	private Integer id;
	@Field(length = 20)
	private String year;
	@Field(length=20,index=true)
	private String month;
	@Field(length = 100)
	private String day;
	@Field(longText = true)
	private TextObject to;
	@Field(streamObject = true)
	private StreamObject so;
	public String getDay() {
		return day;
	}
	public void setDay(String day) {
		this.day = day;
	}
	public String getMonth() {
		return month;
	}
	public void setMonth(String month) {
		this.month = month;
	}
	public String getYear() {
		return year;
	}
	public void setYear(String year) {
		this.year = year;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String toString(){
		return id+":"+year+"/"+month+"/"+day;
	}
	public TextObject getTo() {
		return to;
	}
	public void setTo(TextObject to) {
		this.to = to;
	}
	public StreamObject getSo() {
		return so;
	}
	public void setSo(StreamObject so) {
		this.so = so;
	}
}